﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DA;

namespace BL
{
    public class KhachHang_BL
    {
        KhachHang_DA KD = new KhachHang_DA();
        public List<KhachHang> TimKHTheoMa(string key)
        {
            return KD.TimKiemKHTheoMa(key);
        }
        public List<KhachHang> TimKHTheoTen(string key)
        {
            return KD.TimKiemKHTheoTen(key);
        }
        public List<KhachHang> LayAllDSKhachHang()
        {
            return KD.LayDSKhachHang();
        }
        public bool Them1KhachHang(KhachHang N)
        {
            return KD.ThemKhachHang(N);
        }
        public bool Sua1KhachHang(KhachHang N)
        {
            return KD.SuaKhachHang(N);
        }
        public bool Xoa1KhachHang(string MaKH)
        {
            return KD.XoaKhachHang(MaKH);
        }
        public string LayTenKHTheoMa(string MaKH)
        {
            return KD.LayTenKHTheoMa(MaKH);
        }
        public string LayLoaiKHtheoma(string MaKH)
        {
            return KD.LayLoaiKHTheoMa(MaKH);
        }
    }
}
